package com.jackiechancinema.ssm.service.Inte;

import com.jackiechancinema.ssm.bo.WorkerBo;
import com.jackiechancinema.ssm.entity.Worker;
import com.jackiechancinema.ssm.vo.PageVo;
import com.jackiechancinema.ssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface WorkerService {
    R insertWork(Worker worker);

    R updateWork(Worker worker);

    R deleteWork(int work_id);

    PageVo<Worker> page(int page, int limit);

    PageVo<Worker> page2(WorkerBo workerBo);

    R insertBatch(MultipartFile file);

    void exportExcel(WorkerBo bo, HttpServletResponse response);
}
